<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SGAKIC产品跳转详情页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa, #e4edf9);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .container {
            max-width: 1000px;
            width: 100%;
            background: white;
            border-radius: 16px;
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
            padding: 30px;
            text-align: center;
        }
        
        header {
            margin-bottom: 30px;
        }
        
        h1 {
            color: #2c3e50;
            font-size: 2.2rem;
            margin-bottom: 10px;
        }
        
        .subtitle {
            color: #7f8c8d;
            font-size: 1.1rem;
            max-width: 500px;
            margin: 0 auto 15px;
        }
        
        .image-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }
        
        @media (max-width: 768px) {
            .image-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 480px) {
            .image-grid {
                grid-template-columns: 1fr;
                max-width: 350px;
                margin: 0 auto;
            }
        }
        
        .image-link {
            display: block;
            text-decoration: none;
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .image-link:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
        }
        
        .image-wrapper {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 100%;
            overflow: hidden;
        }
        
        .image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        
        .image-link:hover .image {
            transform: scale(1.05);
        }
        
        .image-name {
            display: block;
            padding: 15px 10px;
            color: #34495e;
            font-weight: 600;
            font-size: 1.1rem;
            background: #f8f9fa;
        }
        
        footer {
            margin-top: 40px;
            color: #95a5a6;
            font-size: 0.9rem;
        }
        
        .divider {
            height: 1px;
            background: linear-gradient(to right, transparent, #3498db, transparent);
            margin: 25px 0;
        }
         .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90vh;
            overflow: auto;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        }
        
        .detail-image {
            display: block;
            width: 100%;
            max-width: 800px;
            border-radius: 10px 10px 0 0;
        }
        
        .close-button {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 2rem;
            color: #fff;
            background: rgba(0, 0, 0, 0.6);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .close-button:hover {
            background: #e74c3c;
            transform: rotate(90deg);
        }
        
        .image-details {
            padding: 20px;
            max-width: 800px;
        }
        
        .detail-title {
            font-size: 1.8rem;
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        .detail-desc {
            font-size: 1.1rem;
            color: #7f8c8d;
            line-height: 1.6;
            margin-bottom: 15px;
        }
        
        .detail-features {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .feature {
            background: #f8f9fa;
            padding: 10px 15px;
            border-radius: 8px;
            font-size: 0.9rem;
        }
        
        .detail-footer {
            text-align: center;
            padding: 15px 0;
            border-top: 1px solid #eee;
        }
        
        .detail-link {
            display: inline-block;
            padding: 12px 30px;
            background: #3498db;
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .detail-link:hover {
            background: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }
        
        @media (max-width: 768px) {
            .image-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
            
            .detail-title {
                font-size: 1.5rem;
            }
            
            .detail-desc {
                font-size: 1rem;
            }
        }
        
        @media (max-width: 480px) {
            .image-grid {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <h1>SGAKIC</h1>
            <div class="divider"></div>
        </header>
        
        <div class="image-grid">
            <!-- 图片1 -->
            <div class="image-link" onclick="openDetail(1)">
                <div class="image-wrapper">
                    <img src="https://s21.ax1x.com/2025/07/31/pVtJ0OA.jpg" alt="榨汁机" class="image">
                </div>
                <span class="image-name">믹서기</span>
            </div>
            
            <!-- 图片2 -->
            <div class="image-link" onclick="openDetail(2)">
                <div class="image-wrapper">
                    <img src="https://s21.ax1x.com/2025/07/31/pVtJwyd.jpg" alt="不锈钢饭盒" class="image">
                </div>
                <span class="image-name">스텐 도시락</span>
            </div>
            
            <!-- 图片3 -->
            <div class="image-link" onclick="openDetail(3)">
                <div class="image-wrapper">
                    <img src="https://s21.ax1x.com/2025/07/31/pVtJdQH.jpg" alt="冰霸杯" class="image">
                </div>
                <span class="image-name">보온병</span>
            </div>
            
            <!-- 图片4 -->
            <div class="image-link" onclick="openDetail(4)">
                <div class="image-wrapper">
                    <img src="https://s21.ax1x.com/2025/07/31/pVtJaSe.jpg" alt="轻食盒" class="image">
                </div>
                <span class="image-name">도시락통</span>
            </div>
            
            <!-- 图片5 -->
            <div class="image-link" onclick="openDetail(5)">
                <div class="image-wrapper">
                    <img src="https://s21.ax1x.com/2025/07/31/pVtJNWD.jpg" alt="真空碗" class="image">
                </div>
                <span class="image-name">보온도시락</span>
            </div>
            
            <!-- 图片6 -->
            <div class="image-link" onclick="openDetail(6)">
                <div class="image-wrapper">
                    <img src="https://s21.ax1x.com/2025/07/31/pVtJtJO.jpg" alt="防水包" class="image">
                </div>
                <span class="image-name">방수 가방</span>
            </div>
        </div>
        <div class="modal-overlay" id="imageModal">
            <div class="modal-content">
                <span class="close-button" onclick="closeDetail()">&times;</span>
                
                <!-- 详情长图区域 -->
                <img src="" id="detailImage" class="detail-image">
                
                <!-- 详情文本内容 -->
                <div class="image-details">
                    <h2 id="detailTitle" class="detail-title"></h2>
                    <p id="detailDesc" class="detail-desc"></p>
                    
                    <div class="detail-features" id="detailFeatures"></div>
                    

                </div>
            </div>
        </div>
        <footer>
            <div class="divider"></div>
        </footer>
    </div>
    
        <script>
        // 产品数据 - 实际应用中应来自数据库或API
        const products = [
            {
                id: 1,
                imageUrl: "https://sgakic-1.obs.cn-south-1.myhuaweicloud.com/zzjxqy1.jpg"
            },
            {
                id: 2,
                imageUrl: "https://sgakic-1.obs.cn-south-1.myhuaweicloud.com/fhxqy.jpg"
            },
            {
                id: 3,
                imageUrl: "https://sgakic-1.obs.cn-south-1.myhuaweicloud.com/bbbxqy1.jpg"
            },
            {
                id: 4,
                imageUrl: "https://sgakic-1.obs.cn-south-1.myhuaweicloud.com/qshxqy.jpg"
            },
            {
                id: 5,
                imageUrl: "https://sgakic-1.obs.cn-south-1.myhuaweicloud.com/zkwxqy.jpg"
            },
            {
                id: 6,

                imageUrl: "https://s21.ax1x.com/2025/07/31/pVtYZnA.jpg"
            }
        ];

        // 打开详情弹窗
        function openDetail(id) {
            const product = products.find(p => p.id === id);
            if (product) {
                document.getElementById("detailImage").src = product.imageUrl;
                const featuresContainer = document.getElementById("detailFeatures");
                featuresContainer.innerHTML = ""; 
                document.getElementById("imageModal").classList.add("active");
                document.body.style.overflow = "hidden"; // 防止背景滚动
            }
        }

        // 关闭详情弹窗
        function closeDetail() {
            document.getElementById("imageModal").classList.remove("active");
            document.body.style.overflow = "auto"; // 恢复背景滚动
        }

        // 点击模态框背景关闭
        document.getElementById("imageModal").addEventListener("click", function(e) {
            if (e.target === this) {
                closeDetail();
            }
        });

        // 按ESC键关闭弹窗
        document.addEventListener("keydown", function(e) {
            if (e.key === "Escape" && document.getElementById("imageModal").classList.contains("active")) {
                closeDetail();
            }
        });
    </script>
    
</body>
</html>